package interfacedemo;

public class BasketballAthlete extends Person{
    public BasketballAthlete() {
    }
    public BasketballAthlete(String name,int age) {
        super(name,age);
    }
    @Override
    public void action() {
        System.out.println(getAge()+"岁的篮球教练"+getName()+"教篮球");
    }
}
